package org.springblade.modules.admin.vo;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 业务日志查询VO
 * @author: Sharry
 * @createTime: 2023/2/9 17:43
 * @version: Version-1.0
 */

@Data
public class MaintainBusinessLogVO extends TenantEntity {
	/**
	 * 关键字id
	 */
	@TableField(value = "param_key")
	private Long paramKey;

	/**
	 * 更新前内容
	 */
	@TableField(value = "old_content",typeHandler = JacksonTypeHandler.class)
	private JSONObject oldContent;

	/**
	 * 更新后内容
	 */
	@TableField(value = "new_content",typeHandler = JacksonTypeHandler.class)
	private JSONObject newContent;

	/**
	 * 对应业务类型
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 更新/创建人
	 */
	private String userRealName;

}
